/**
 * 
 */
package org.tea.springdata.web.entity;

import java.util.List;

/**
 * @author John zhang
 * @version 0.1
 */
public class Menu {

	private String type;
	private String name;
	private String keyOrUrl;
	private List<Menu> subMenu;

	public String getType() {
		return type;
	}

	public void setType( String type ) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName( String name ) {
		this.name = name;
	}

	public String getKeyOrUrl() {
		return keyOrUrl;
	}

	public void setKeyOrUrl( String keyOrUrl ) {
		this.keyOrUrl = keyOrUrl;
	}

	public List<Menu> getSubMenu() {
		return subMenu;
	}

	public void setSubMenu( List<Menu> subMenu ) {
		this.subMenu = subMenu;
	}

	public enum MenuType {
		CLICK( "click"), VIEW( "view");

		private String value;

		MenuType( String value ) {
			this.value = value;
		}

		public String getValue() {
			return this.value;
		}
	}
}
